using System.Collections.Generic;

namespace RollManager.Library
{
    partial class Database
    {
        public static void AddServer( string name )
        {
            runQuery( "AddServer", name );
        }

        public static void DeleteServer( int id )
        {
            runQuery( "DeleteServer", id );
        }

        public static List<Server> GetServers()
        {
            return runMapper<Server>( "GetServersAll" );
        }

        public static List<Server> GetServers( int serverGroupId )
        {
            return runMapper<Server>( "GetServers", serverGroupId );
        }

        public static void RenameServer( int serverId, string name )
        {
            runQuery( "SaveServer", serverId, name );
        }
    }
}
